<?xml version="1.0" encoding="UTF-8"?>

<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:jsf="http://xmlns.jcp.org/jsf/passthrough"
	template="/WEB-INF/templates/public/default.xhtml"
>

	<f:metadata>

	</f:metadata>

	<ui:define name="content">
		
		<div class="all-container">
			<!--首页-->
			<div class="first-pagebox">
				<!--首页标题-->
				<div class="yellow-riverbox">
					<img
						src="#{resource['img/first/logo.png']}"
						alt=""
					/><img
						src="#{resource['img/first/head_zt.png']}"
						alt=""
					/>
				</div>
				<h:form>
					<div class="content-all">
						<h:inputText
							id="searchString"
							jsf:type="search"
							jsf:placeholder="请输入中介名称"
							class="search-input"
							value="#{serviceSupplierList.cnname}"
						/>
						<h:commandButton action="/public/SupplierList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" value="查询" styleClass="search-inputButton" />					
						<div class="search-listBox">
							<ul class="search-list">
								<li>
									<p:link outcome="/public/SupplierList.xhtml" value="工程监理">
										<f:param name="qClassId" value="#{qualificationConditionBean.findQualificationClassId('工程监理资质')}"></f:param>
									</p:link>
								</li>
								<li>
									<p:link outcome="/public/SupplierList.xhtml" value="城乡规划编制资质">
										<f:param name="qClassId" value="#{qualificationConditionBean.findQualificationClassId('城乡规划编制资质')}"></f:param>
									</p:link>
								</li>
								<li>
									<p:link outcome="/public/SupplierList.xhtml" value="测绘资质">
										<f:param name="qClassId" value="#{qualificationConditionBean.findQualificationClassId('测绘资质')}"></f:param>
									</p:link>
								</li>
							</ul>
							<div style="clear: both"></div>
						</div>
					</div>
				</h:form>
				<div style="clear: both"></div>
				<!--三个模板框-->
				
				<div class="nav-box">
					<div class="pro_site bcc"> <p:link outcome="/public/supplierExhibition.xhtml">
						<div class="img" style="background-image:url(#{resource['images/a1.png']})"></div>
						<div class="imgH" style="background-image:url(#{resource['images/b1.png']})"></div>
						<span>中介机构</span> </p:link> </div>
					<div class="pro_site bcc"> <p:link outcome="/public/buyerExhibition.xhtml">
						<div class="img" style="background-image:url(#{resource['images/a2.png']})"></div>
						<div class="imgH" style="background-image:url(#{resource['images/b2.png']})"></div>
						<span>采购人</span> </p:link> </div>
					<div class="pro_site bcc"> <p:link outcome="/public/publicExhibition.xhtml">
						<div class="img" style="background-image:url(#{resource['images/a3.png']})"></div>
						<div class="imgH" style="background-image:url(#{resource['images/b3.png']})"></div>
						<span>游客入口</span> </p:link> </div>
					<div style="clear: both"></div>
				</div>
				<!--下拉通告-->
				<div
					id="msg-box"
					class="msg-box"
				>
					<div class="msg-small">
						<div class="msg-titleBox">
							<h2 class="msg-title">
								通知公告 <span> <a
									href="#"
									class="msg-count"
								>(#{articleQueryBean.queryArticle('通知公告').size()})</a>
								</span>								
								<span style="float: right; padding-right: 5px; font-size: 14px;">
									<p:link outcome="/public/ArticleList.xhtml">								
										更多..
										<f:param name="categoryId" value="#{articleQueryBean.findCategory('通知公告').id}"></f:param>
									</p:link>	
								</span>
							</h2>
						</div>
						<div class="msg-contentBox">							
				            <ul class="msg-list">
								<p:repeat
									value="#{articleQueryBean.queryArticle('通知公告')}"
									var="_article"
									styleClass="msg-list"
								>
									<li>
										<p:link
											outcome="/public/Article.xhtml"
											target="_blank"
										>
											<f:param
												name="articleId"
												value="#{_article.id}"
											></f:param>
		
											<span> 【 <h:outputText value="#{_article.createDate}">
													<f:convertDateTime pattern="MM-dd" />
												</h:outputText> 】
											</span>
											<h:outputText value="#{_article.title}" />
										</p:link>		
									</li>						
								</p:repeat>
							</ul>
						</div>
						<!--触发拉环-->
						<div
							class="click-box"
							id="click-box"
						>
							<img
								src=""
								alt=""
							/>
						</div>
					</div>
				</div>
			</div>
		
		</div>
		
		<ui:include src="/WEB-INF/templates/public/include/copyRight.xhtml"></ui:include>
	</ui:define>
</ui:composition>
